package com.ssii.www.myproject.common.util;

import org.apache.log4j.Logger;

public class LogUtils {
  private static Logger logger = null;

  public static Logger getLogger(){
    if(logger==null){
      String className = Thread.currentThread().getStackTrace()[2].getClassName();
      logger = Logger.getLogger(className);
//      try {
//        Class<?> aClass = Class.forName(className);
//        logger = Logger.getLogger(aClass);
//      } catch (ClassNotFoundException e) {
//
//      }
    }
    return logger;
  }
}
